package com.withyou.euraka.provide.util;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.util.StringUtils;
public class DateUtil {

	public static String formatDateTime(Date date, String format){
		if(date != null && !StringUtils.isEmpty(format)){
			SimpleDateFormat dateFormat = new SimpleDateFormat(format);
			dateFormat.format(date);
		}
		return null;
	}
}
